package com.zwb.service.common;

/**
 * @author 头发又黑又长
 * @Date 2022/9/9 9:39
 * @email zwb15083976291@163.com
 */

public class MailConstants {
    /* 交换机 */
    public static final String EXCHANGE_EMAIL = "exchange.email";
    /* 队列 */
    public static final String QUEUE_EMAIL = "queue.email";
    /* routing key */
    public static final String EMAIL_ROUTING_KEY = "email_routing_key";

    /*消息投递中*/
    public static final Integer DELIVERING = 0;

    /*消息投递成功*/
    public static final Integer SUCCESS = 1;

    /*消息投递失败*/
    public static final Integer FAILURE = 2;

    /*最大重试次数*/
    public static final Integer MAX_TRY_COUNT = 3;

    /*消息超时时间 分钟*/
    public static final Integer MSG_TIMEOUT = 1;

    /* 延迟 */
    public static final String DELAY_EXCHANGE = "exchange.email.delay";
    public static final String DELAY_QUEUE = "queue.email.delay";
    public static final String DELAY_EMAIL_ROUTING_KEY = "email_delay_routing_key";

}
